//
//  Builder.h
//  ArchitectDemo
//
//  Created by 姚胜龙 on 2017/7/5.
//  Copyright © 2017年 姚胜龙. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BuilderParams.h"
#import "SLAlertController.h"

//构建者构建对象
@interface Builder : NSObject

- (instancetype _Nonnull)initWithContext:(UIViewController *_Nonnull)context;

- (Builder *_Nonnull)setTitle:(NSString * _Nullable)title;
- (Builder *_Nonnull)setMessage:(NSString *_Nullable)message;
- (Builder *_Nonnull)setConfirmTitle:(NSString *_Nullable)confirmTitle;
- (Builder *_Nonnull)setCancelTitle:(NSString *_Nullable)cancelTitle;

- (Builder *_Nonnull)setConfirmHandler:(void (^ __nullable)(UIAlertAction * _Nullable action))handler;
- (Builder *_Nonnull)setCancelHandler:(void (^ __nullable)(UIAlertAction *_Nullable action))handler;

- (SLAlertController *_Nonnull)build;

@end
